package cn.ynu.cmrs.utils;

import java.util.WeakHashMap;

import android.graphics.drawable.Drawable;

/**
 * Cache pictures used in program
 * 
 * @author starsfury
 *
 */
public class ImageCache extends WeakHashMap<String, Drawable> {

	public boolean isCached(String url) {
		return containsKey(url) && get(url) != null;
	}
}
